package com.work.test;

import java.util.Scanner;

public class T4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int res = 1,left = 1,right = 1;
        while (true){
            if (res == n) break;
            if (res < n){
                res *= right;
                right++;
            }
            else{
                res /=left;
                left++;
            }
        }
        System.out.println(right-left);
        for (int i=left;i<right;i++){
            System.out.print(i+"*");
        }
        System.out.println(right);
    }
}
